package vip.sweet.biz.modular.comment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

/**
 * @author ASUS
 * @Date 2025/10/4 17:47
 * @Descripition
 */
@Schema(description = "业务逻辑评论实体类")
@TableName("biz_comments")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BizComments {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "ID")
    private String id;
    @Schema(description = "产品ID")
    private String productId;
    @Schema(description = "用户ID")
    private String userId;
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "用户头像")
    private String userAvatar;
    @Schema(description = "评分")
    private Integer rating;
    @Schema(description = "评论内容")
    private String content;
    @Schema(description = "评论时间")
    private Date date;
    @Schema(description = "创建时间")
    private Date createTime;
    @Schema(description = "回复数")
    private Integer replyCount;
    @Schema(description = "点赞数")
    private Integer likes;
}
